class LovesRunning(object):
    def __init__(self, name,weight):
        self.name = name
        self.weight = weight

    def __str__(self):
        return f"{self.name} is {self.weight} kg"

    def run(self, distance=1):
        for i in range(distance):
            self.weight -= 0.5
        print(f"{self.name} is running,weight is {self.weight}")
    def eat(self, food=1):
        # self.run(1)
        for i in range(food):
            self.weight += 1
        print(f"{self.name} is eating,weight is {self.weight}")
        # self.run(1)


people01 = LovesRunning("小明",75.0)
# 小明吃饭之前先跑了步
people01.eat(2)
people01.run(5)
print(people01)